<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<script type="text/javascript" src="./js/exercises.js"></script>
<jsp:include page="header.jsp" flush="false"></jsp:include>
<jsp:include page="left.jsp" flush="false"></jsp:include>
<div id="content">
	<div class="post">
		<h3 class="title">
			在线练习
		</h3>
	</div>
	<s:iterator var="exer" value="#exers" status="status">
		<div class="post">
			<form>
				<b>${ status.count}.<s:property value="question" /> </b>
				<br>
				
				<s:iterator var="option" value="#exer.options" status="st">
					<label>
					<input type="radio" name="${ exer.id}" value="${ id}" />
					<s:if test="#st.count==1">A.</s:if>
					<s:if test="#st.count==2">B.</s:if>
					<s:if test="#st.count==3">C.</s:if>
					<s:if test="#st.count==4">D.</s:if>
					<s:property value="option" />
					</label>
					<br>
				</s:iterator>
			
				<div id="result${ status.count}"></div>

			</form>
		</div>
	</s:iterator>
	<input type="button" value="提交" onclick="readExer()">
</div>
<jsp:include page="footer.jsp" flush="false"></jsp:include>
